<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<c:if test="${empty sessionScope.account}">
	<c:redirect url="login"></c:redirect>
</c:if>

<div class='menu'>
	<div id='mn_left'>
		<ul>
			<li><a id='mn_home' href='forum'>Diễn đàn</a></li>
			<c:if test="${account.type=='Admin'}">
				<li><a href='accountmanager'>Quản lý thành viên</a></li>
			</c:if>
		</ul>
	</div>
	<div id='mn_right'>
		<ul>
			<c:choose>
				<c:when test="${account!=null}">
					<li><a id='mn_login' href="account?do=view&uid=${account.id}">${account.username}</a></li>
					<li><a id='mn_logout' href='logout'>Đăng xuất</a></li>
				</c:when>
				<c:otherwise>
					<li><a href='login'>Đăng nhập</a></li>
					<li><a href='register'>Đăng ký</a></li>
				</c:otherwise>
			</c:choose>
		</ul>
	</div>
</div>